package com.aliyun.messagemgt.service;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName LanXinCommResult
 * @Author heshuaijie
 * @Description //TODO
 * @Date 2022/4/16 17:31
 */
@Data
public class LanXinCommResult {
    @JSONField(name = "errcode")
    public String errCode;
    @JSONField(name = "errmsg")
    public String errMsg;
    private String msgId;

    public boolean isSuccess() {
        if (StringUtils.isEmpty(errCode)) {
            return false;
        }
        return LanXinConstant.STRING_ZEOR.equals(errCode);
    }
}
